package com.ecoolex.discount.sales.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;

import lombok.Data;

@ConfigurationProperties(prefix = "unionpay")
@Data
public class UnionPayUCSPProperties {

	//银联内容服务平台签名证书ID
	private String ucspSignCertID;
	
	//银联内容服务平台加密证书ID
	private String appEncCertID;
	
	private Signature signature;

    private Encrypt encrypt;
    
    @Data
    public static class Signature {

        private Resource privateKey;

        private String password;

        //UCSP平台验签公钥
        private Resource publicKey;
    }


    @Data
    public static class Encrypt{

    	//UCSP平台加密公钥
        private Resource publicKey;
        
        //UCSP平台解密私钥
        private Resource privateKey;
        
        private String password;
    }
}
